package com.example.bootadmin.controller;

import com.example.bootadmin.entity.MyUser;
import com.example.bootadmin.util.R;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

public class LoginController {
    @RequestMapping(value = "login",method = RequestMethod.POST)
    public R login(@RequestBody MyUser myUser){
        System.out.println(myUser);
            return R.ok("添加成功");


    }
}
